#include "Context.h"
#include "State.h"
namespace StateMode
{
    Context::Context()
    {
        _state = new ConcreteStateA;
    }

    void Context::setState(State* state) {
        _state = state;
    }  

    State* Context::getState()
    {
        return _state;
    }

    void Context::Handle() 
    {
        _state->Handle(this);
    }
}